/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/dingdan">dingdan</a> All rights reserved.
 */
package com.thinkgem.dingdan.modules.bu.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.dingdan.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author ThinkGem
 * @version 2018-08-26
 */
public class BuCustomer extends DataEntity<BuCustomer> {
	
	private static final long serialVersionUID = 1L;
	
	private String customerName;				// 客户姓名
	private String companyName;					// 公司名称
	private String principal;					// 负责人
	private String contactNumber;				// 联系电话
	private String webchat;						// 微信
	
	private String qq;							// QQ
	private String email;						// 邮箱
	private String salesMan;					// 负责业务员
	
	public BuCustomer() {
		super();
	}

	public BuCustomer(String id){
		super(id);
	}

	@Length(min=0, max=64, message="客户姓名长度必须介于 0 和 64 之间")
	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	
	@Length(min=0, max=64, message="公司名称长度必须介于 0 和 64 之间")
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	@Length(min=0, max=32, message="负责人长度必须介于 0 和 32 之间")
	public String getPrincipal() {
		return principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}
	
	@Length(min=0, max=16, message="联系电话长度必须介于 0 和 16 之间")
	public String getContactNumber() {
		return contactNumber;
	}

	public void setContactNumber(String contactNumber) {
		this.contactNumber = contactNumber;
	}
	
	@Length(min=0, max=32, message="微信长度必须介于 0 和 32 之间")
	public String getWebchat() {
		return webchat;
	}

	public void setWebchat(String webchat) {
		this.webchat = webchat;
	}
	
	@Length(min=0, max=32, message="QQ长度必须介于 0 和 32 之间")
	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}
	
	@Length(min=0, max=16, message="邮箱长度必须介于 0 和 16 之间")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Length(min=0, max=32, message="负责业务员长度必须介于 0 和 32 之间")
	public String getSalesMan() {
		return salesMan;
	}

	public void setSalesMan(String salesMan) {
		this.salesMan = salesMan;
	}
	
}